<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/template.xhtml">

	<ui:define name="content">
		<div class="middle">
			<br />
			<div class="middle">
				<b> <h:outputText value="#{msg.TG_ticketView_header}"/></b>
			</div>
			<br />
			<h:outputText rendered="#{viewTicketsBean.message != ''}"
				value="#{viewTicketsBean.message}"></h:outputText>
			<br />
			<h:form>
				<h:dataTable rendered="#{viewTicketsBean.emptyList}" class="table"
					border="0" value="#{viewTicketsBean.techticketList}" var="ttl">
					<h:column id="column1">
						<f:facet name="header">
							<h:outputText value="#{msg.TG_ticketView_table_sender}"></h:outputText>
						</f:facet>
						<h:outputText value="#{ttl.senderUsername}"></h:outputText>
					</h:column>
					<h:column id="column2">
						<f:facet name="header">
							<h:outputText value="#{msg.TG_ticketView_table_date}"></h:outputText>
						</f:facet>
						<h:outputText value="#{ttl.date}">
							<f:convertDateTime pattern="dd.MM.yyyy" />
						</h:outputText>
					</h:column>
					<h:column id="column3">
						<f:facet name="header">
							<h:outputText value="#{msg.TG_ticketView_table_problemType}"></h:outputText>
						</f:facet>
						<h:outputText value="#{ttl.problemType}"></h:outputText>
					</h:column>
					<h:column id="column4">
						<f:facet name="header">
							<h:outputText value="#{msg.TG_ticketView_table_domain}"></h:outputText>
						</f:facet>
						<h:outputText value="#{ttl.senderDomain}"></h:outputText>
					</h:column>
					<h:column id="column5">
						<f:facet name="header">
							<h:outputText value="#{msg.TG_ticketView_table_details}"></h:outputText>
						</f:facet>

						<h:commandButton class="button" value="#{msg.TG_ticketView_detailsButton}" id="details"
							actionListener="#{viewTicketsBean.settingTicket}">
							<f:param name="ticketID" value="#{ttl.idTicket}" />
						</h:commandButton>

					</h:column>
				</h:dataTable>

			</h:form>
		</div>
	</ui:define>

</ui:composition>
</html>